package com.spring.transaction.demotransaction.service;

import com.spring.transaction.demotransaction.entity.User;
import com.spring.transaction.demotransaction.entity.UserExt;

public interface UserService {

    User insertUser(User user,boolean throwException);

    void insertUserExt(UserExt userExt,boolean throwException);

    User insertUserWithRequired(User user,boolean throwException);

    void insertUserExtWithRequired(UserExt userExt,boolean throwException);

    User insertUserWithRequiredNew(User user,boolean throwException);

    void insertUserExtWithRequiredNew(UserExt userExt,boolean throwException);

    User insertUserWithNested(User user,boolean throwException);

    void insertUserExtWithNested(UserExt userExt,boolean throwException);
}
